home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DMAKE38B.ARJ / CONFIG.MK < prev    next >
Makefile  |  1991-06-24  |  2KB  |  74 lines

  1. # This is the ZTC DOS configuration file for DMAKE
  2. #    It simply modifies the values of SRC, and checks to see if
  3. #    OSENVIRONMENT is defined.  If so it includes the appropriate
  4. #    config.mk file.
  5. #
  6. # It also sets the values of .SOURCE.c and .SOURCE.h to include the local
  7. # directory.
  8. #
  9. osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE)
  10.  
  11. TMPDIR :=
  12. .EXPORT : TMPDIR
  13.  
  14. # Definition of macros for library, and C startup code.
  15. # Swapping for DOS versions is enabled by default.  ZTC will automatically
  16. # perform swapping to XMS, EMS or disk by including _swapl.obj at link time.
  17. # To be most effective, _swapl.obj should be the first file linked so we
  18. # assign it to CSTARTUP if needed.
  19. .IF $(SWAP) == y
  20.    CSTARTUP = _swapl.obj
  21. .END
  22.  
  23. # The following sources are required for ZTC
  24. # The tempnam supplied with ZTC doesn't handle a NULL dir.
  25. OSR_SRC = tempnam.c environ.c
  26. .SETDIR=$(osrdir) : $(OSR_SRC)
  27.  
  28. SRC += $(OSR_SRC)
  29. .SOURCE.h : $(osrdir)
  30.  
  31. # Local configuration modifications for CFLAGS 
  32. # If you have a 286, you can use -2 or appropriate to get better code, 
  33. # in that case uncomment the line below.  (You can also simply set
  34. # it in the CL environment variable.)
  35. #CFLAGS += -2
  36. ASFLAGS += -t -mx $(S_$(MODEL))
  37.  
  38. # Redefine this, it isn't needed!
  39. LDTAIL = ;
  40.  
  41. # Debugging libraries
  42. DB_LDFLAGS += -g
  43. DB_LDLIBS  +=
  44.  
  45. # NO Debug ZTC flags:
  46. #
  47.  
  48. CFLAGS      += -I$(osrdir) $(C_$(MODEL))
  49. CFLAGS      += -DM_I86=1 -DMSDOS
  50. CFLAGS      += -b             # use large compiler
  51. #CFLAGS      += -w            # no warnings
  52. CFLAGS      += -mi            # integer only
  53. CFLAGS      += -p             # no auto-prototyping
  54. NDB_CFLAGS  += -o
  55. DB_CFLAGS   += -g
  56.  
  57. # Redefine rule for making our objects, we don't need mv
  58. %$O : %.c ;% $(CC) -c $(CFLAGS) -o$@ $<
  59.  
  60. # See if we modify anything in the lower levels.
  61. .IF $(OSENVIRONMENT) != $(NULL)
  62.    .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
  63. .END
  64.  
  65. C_s =
  66. C_m = -mM
  67. C_c = -mC
  68. C_l = -mL
  69.  
  70. S_s = -Dmsmall
  71. S_m = -Dmmedium
  72. S_c = -Dmcompact
  73. S_l = -Dmlarge
  74.